package com.szamc.tableroundapi.model.Response.Common;

import lombok.Data;

import java.util.List;

@Data
public class ResultList<T> {
    private int code;
    private String message;
    private List<T> data;
    public ResultList (int code, String message, List<T> data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }
    public static<T>  ResultList<List<T>> Success(List<T> data){
        return new ResultList(200,"Success",data);
    }

}